/*
 * @(#)com.cloud.food.service.wx 2020/2/16 02:16
 * @Author <a href="mailto:xyqierkang@gmail.com">ErKang Qi</a>
 * @Blog：https://www.qekang.com
 * Copyright (c) 2019-2020 Shanghai
 * All rights reserved.

 * This software is the confidential and proprietary information of
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 */
package com.cloud.lan.service.tx.wx;

import com.cloud.lan.entity.constant.WxDataConstant;
import com.cloud.lan.entity.enums.RedisKeyEnum;
import com.cloud.lan.service.impl.RedisService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import lombok.extern.slf4j.Slf4j;

/**
 * *********************************************************
 *
 * @Author <a href="mailto:xyqierkang@gmail.com">ErKang Qi</a>
 * @Date Created in $ $
 * @Title $.java
 * <p>Description: [ TODO ] </p>
 * <p>Blog: https://www.qekang.com</p>
 * <p>Inc:  </p>
 * <p>Copyright:    </p>
 * <p>Department: Product development </p>
 * *********************************************************
 */
@Slf4j
@Service
public class WxInitService {

    @Resource
    RedisService redisService;

    public String getAccessToken() {
        String accessToken = redisService.getCommonRedis(RedisKeyEnum.WX_API_ACCESS_TOKEN.key(WxDataConstant.APPID));
        log.info("获取 getAccessToken {}", accessToken);
        return accessToken;
    }
}
